
/**		
 * 
 *	uk.co.lmfm.guppy.controller.AutoSetupCommand
 *	
 *	@version 1.00 | Feb 4, 2010
 *	@author Justin Windle
 *  
 **/
 
package uk.co.lmfm.guppy.controller 
{
	import uk.co.lmfm.guppy.application.enum.ApplicationConstants;
	import uk.co.lmfm.guppy.model.SettingsProxy;

	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	/**
	 * AutoSetupCommand
	 */
	public class AutoSetupCommand extends SimpleCommand implements ICommand 
	{
		override public function execute(notification : INotification) : void
		{
			super.execute(notification);
			
			var settingsProxy : SettingsProxy = facade.retrieveProxy(SettingsProxy.NAME) as SettingsProxy;
			settingsProxy.autoSetup();
			
			sendNotification(ApplicationConstants.AUTO_SETUP_START);
			sendNotification(ApplicationConstants.DISABLE_MENU);
		}
	}
}
